import request from '@/utils/request'

export function getTrendsList(data) {
  return request({
    url: 'system/trends/getList',
    method: 'get',
		params: data
  })
}

export function getTrendsListHome(data) {
  return request({
    url: 'system/trends/getListHome',
    method: 'get',
    params: data
  })
}

export function verifyTrends(data) {
  return request({
    url: 'system/trends/verify',
    method: 'post',
    data
  })
}

export function deleteTrends(data) {
  return request({
    url: 'system/trends/delete',
    method: 'post',
    params: {ids:data}
  })
}
export function publishTrendsBatch(data) {
    return request({
        url: 'system/trends/publishBatch',
        method: 'post',
        data
    })
}

export function getCommentList(data) {
  return request({
    url: 'system/trends/getCommentList',
    method: 'get',
		params: data,
     })
}

export function deleteComment(data) {
  return request({
    url: 'system/trends/deleteComment',
    method: 'post',
    data
  })
}

export function editTrends(data) {
  return request({
    url: 'system/trends/edit',
    method: 'post',
    params: data
  })
}

export function getDownloadList(data) {
  return request({
    url: 'system/trends/getDownloadList',
    method: 'get',
    params: data,
  })
}
export function getTrendsDownloadNumApply(data) {
  return request({
    url: 'system/trends/getTrendsDownloadNumApply',
    method: 'get',
    params: data,
  })
}
export function verifyTrendsDownloadNum(data) {
  return request({
    url: 'system/trends/editVerifyTrendsDownloadNum',
    method: 'post',
    params: data,
  })
}
export function getDownloadWalkMemberSelector(query) {
  return request({
    url: 'system/walkMember/getSelector',
    method: 'get',
    params: query
  })
}
